package com.gxar.file.server.base.model.upload.response;

import com.fasterxml.jackson.annotation.JsonProperty;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.List;

/**
 * @author linsy
 * @version 1.0
 * @created 2023/8/14 15:09
 */
@Data
public class FilePartUploadResponse {

    @ApiModelProperty("是否跳过上传")
    @JsonProperty("skip_upload")
    private Boolean skipUpload;
    @ApiModelProperty("文件key")
    @JsonProperty("key")
    private String key;
    @ApiModelProperty("文件下载地址（上传完成才返回）")
    @JsonProperty("url")
    private String url;
    @ApiModelProperty("上传文件的标识")
    @JsonProperty("upload_id")
    private String uploadId;
    @ApiModelProperty("已上传的文件编号集合")
    @JsonProperty("uploaded")
    private List<Integer> uploaded;
    @ApiModelProperty("下载完成")
    @JsonProperty("finish")
    private Boolean finish;
    @ApiModelProperty("文件大小")
    @JsonProperty("size")
    private Long size;

}
